package com.t174.car.dao;

import com.t174.car.entity.CarComponents;
import com.t174.car.entity.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarComponentsDao {
    /**
     * 获得用户
     * @param carComponents
     * @return
     */
    public List<CarComponents> query(@Param("carComponents") CarComponents carComponents,@Param("page") Page page);

    /**
     * 获得总条数（为分页做准备）
     * @return
     */
    public int getTotalCount(@Param("carComponents") CarComponents carComponents);

    /**
     * 添加车辆
     * @param carComponents
     * @return
     */
    public int addCar(CarComponents carComponents);

    /**
     * 查询品牌
     * @param carComponents
     * @return
     */
    public CarComponents queryCarBrand(CarComponents carComponents);
    public List<CarComponents> showqer();
}
